package cn.wizzer.app.user.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 后台客服、群聊快捷用语
 */
@Data
@Table("quick_reply")
public class QuickReply extends BaseModel implements Serializable {
    @Column
    @Name
    @Comment("ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;


    @Column
    @Comment("泰文")
    @ColDefine(type = ColType.TEXT)
    private String thai;


    @Column
    @Comment("英文")
    @ColDefine(type = ColType.TEXT)
    private String english;


    @Column
    @Comment("印文")
    @ColDefine(type = ColType.TEXT)
    private String hindi;


    @Column
    @Comment("备注")
    @ColDefine(type = ColType.TEXT)
    private String remark;


    @Column
    @Comment("是否禁用")
    @Default("0")
    @ColDefine(type = ColType.BOOLEAN)
    private boolean disabled;
}
